package com.liyuxiang.yygh.order.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface AlipayService {
    /**
     * 创建支付二维码
     * @param orderId
     * @return
     */
    Map<String, Object> createNative(Long orderId);

    /**
     * 支付回调
     * @param request
     * @param response
     * @return
     */
    String payCallback(HttpServletRequest request, HttpServletResponse response);

    /**
     * 查询订单状态
     * @param orderId
     * @return
     */
    Map<String, Object> queryPayStatus(Long orderId);

    /**
     * 支付退款
     * @param orderId
     * @return
     */
    Boolean refund(Long orderId);
}
